0a82ca5767f78520716f887cdea3f69b4ceb53ac,gt-fhir-entities/src/main/java/edu/gatech/i3l/fhir/dstu2/entities/Observation.java,Observation,getRelatedResource,#,397

Before Change


															// unit and code are
															// the same in this
															// case
			quantity.setCode(this.unit.getConceptCode());
			quantity.setSystem(this.unit.getVocabulary().getSystemUri());
			value = quantity;
			if (this.rangeLow != null)

After Change


		IDatatype value = null;
		if (this.valueAsNumber != null) {
			QuantityDt quantity = new QuantityDt(this.valueAsNumber.doubleValue());
			if (this.unit != null) {
				// Unit is defined as a concept code in omop v4, then unit and code are the same in this case				
				quantity.setUnit(this.unit.getConceptCode());
				quantity.setCode(this.unit.getConceptCode());
				quantity.setSystem(this.unit.getVocabulary().getSystemUri());
			}
			value = quantity;